﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace EBA.IoC
{
    ///<summary>
    ///Logger配置节点
    /// </summary>
    /// <example>
    ///<eba>
    ///  <log provider="XmlLogProvider">
    ///     <loggers>
    ///     
    ///     </loggers>
    ///  </log>
    ///</eba>
    /// </example>
    public class LoggingConfigurationSection : ConfigurationSection
    {
        /// <summary>
        /// Config log provider
        /// </summary>
        [ConfigurationProperty("provider", IsRequired = false, DefaultValue = "XmlFileLogProvider")]
        public string Provider
        {
            get { return (string)this["provider"]; }
            set { this["provider"] = value; }
        }

        //[ConfigurationProperty("minlevel", IsRequired = false, DefaultValue = "*")]
        //public string MinLevel
        //{
        //    get { return (string)this["MinLevel"]; }
        //    set { this["MinLevel"] = value; }
        //}

        //[ConfigurationProperty("types",IsRequired=false)]
        //public TypeConfigurationElementCollection Types
        //{
        //    get
        //    {
        //        return (TypeConfigurationElementCollection)this["types"];
        //    }
        //    set
        //    {
        //        this["types"] = (object)value;
        //    }
        //}

        //[ConfigurationProperty("assemblies", IsRequired = false)]
        //public AssemblyConfigurationElementCollection Assemblies
        //{
        //    get
        //    {
        //        return (AssemblyConfigurationElementCollection)this["assemblies"];
        //    }
        //    set
        //    {
        //        this["assemblies"] = (object)value;
        //    }
        //}
    }
}
